package com.econ.powercloud.ems.common.enums;

public enum ConfigDitEnums {

    NUM_CURRENT ("NumCurrent","本期示数后缀"),
    NUM_LAST ("NumLast", "上期示数后缀"),
    PRICE("Price","电价后缀"),
    FEE ("Fee", "金额后缀"),
    ;
    private String code;
    private String desc;


    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ConfigDitEnums(String code, String desc){
        this.code=code;
        this.desc=desc;
    }
    public static ConfigDitEnums fromCode(String code){
        for(ConfigDitEnums type: ConfigDitEnums.values()){
            if(type.getCode().equals(type)){
                return type;
            }
        }
        return null;
    }
}
